\hypertarget{structksock__thread__t}{
\section{Referência à estrutura ksock\_\-thread\_\-t}
\label{structksock__thread__t}\index{ksock\_\-thread\_\-t@{ksock\_\-thread\_\-t}}
}
Thread usada para estabelecer conexões socket.  


{\tt \#include $<$socket.h$>$}

\subsection*{Campos de Dados}
\begin{CompactItemize}
\item 
struct task\_\-struct $\ast$ \hyperlink{structksock__thread__t_34e131d5c7d4d36b7213114ebdf869c0}{thread}
\begin{CompactList}\small\item\em Thread onde o socket está executando. \item\end{CompactList}\item 
void($\ast$ \hyperlink{structksock__thread__t_2fd9f49a71f307cb4f2c1ca3940af8cb}{fn} )(void)
\item 
int \hyperlink{structksock__thread__t_f2c4b6bbf29b36dd0bbf5cf97205330a}{running}
\begin{CompactList}\small\item\em Sinaliza se a thread está em execução (flag). \item\end{CompactList}\item 
struct socket $\ast$ \hyperlink{structksock__thread__t_3066dd8c62571dc0017f735319bb815d}{sock}
\begin{CompactList}\small\item\em Socket para receber mensagens. \item\end{CompactList}\item 
struct sockaddr\_\-in \hyperlink{structksock__thread__t_b05c8fa2261a2415f74822c88667289b}{addr}
\item 
struct socket $\ast$ \hyperlink{structksock__thread__t_fde47daf4e0183ec4c067c28b210eb4a}{sock\_\-send}
\begin{CompactList}\small\item\em Socket para enviar mensagens. \item\end{CompactList}\item 
struct sockaddr\_\-in \hyperlink{structksock__thread__t_1bada36c1d4378aa03ec5eb35b6e8d6b}{addr\_\-send}
\end{CompactItemize}


\subsection{Descrição detalhada}
Thread usada para estabelecer conexões socket. 

Definido na linha 14 do ficheiro socket.h.

\subsection{Documentação dos campos e atributos}
\hypertarget{structksock__thread__t_34e131d5c7d4d36b7213114ebdf869c0}{
\index{ksock\_\-thread\_\-t@{ksock\_\-thread\_\-t}!thread@{thread}}
\index{thread@{thread}!ksock_thread_t@{ksock\_\-thread\_\-t}}
\subsubsection[thread]{\setlength{\rightskip}{0pt plus 5cm}struct task\_\-struct$\ast$ {\bf ksock\_\-thread\_\-t::thread}\hspace{0.3cm}{\tt  \mbox{[}read\mbox{]}}}}
\label{structksock__thread__t_34e131d5c7d4d36b7213114ebdf869c0}


Thread onde o socket está executando. 



Definido na linha 19 do ficheiro socket.h.

Referenciado por hb\_\-udb\_\-client\_\-start(), hb\_\-udb\_\-server\_\-start() e nlb\_\-thread\_\-init().\hypertarget{structksock__thread__t_2fd9f49a71f307cb4f2c1ca3940af8cb}{
\index{ksock\_\-thread\_\-t@{ksock\_\-thread\_\-t}!fn@{fn}}
\index{fn@{fn}!ksock_thread_t@{ksock\_\-thread\_\-t}}
\subsubsection[fn]{\setlength{\rightskip}{0pt plus 5cm}void($\ast$ {\bf ksock\_\-thread\_\-t::fn})(void)}}
\label{structksock__thread__t_2fd9f49a71f307cb4f2c1ca3940af8cb}




Referenciado por hb\_\-get\_\-udp\_\-client\_\-thread() e hb\_\-get\_\-udp\_\-server\_\-thread().\hypertarget{structksock__thread__t_f2c4b6bbf29b36dd0bbf5cf97205330a}{
\index{ksock\_\-thread\_\-t@{ksock\_\-thread\_\-t}!running@{running}}
\index{running@{running}!ksock_thread_t@{ksock\_\-thread\_\-t}}
\subsubsection[running]{\setlength{\rightskip}{0pt plus 5cm}int {\bf ksock\_\-thread\_\-t::running}}}
\label{structksock__thread__t_f2c4b6bbf29b36dd0bbf5cf97205330a}


Sinaliza se a thread está em execução (flag). 



Definido na linha 26 do ficheiro socket.h.

Referenciado por hb\_\-udb\_\-client\_\-start() e hb\_\-udb\_\-server\_\-start().\hypertarget{structksock__thread__t_3066dd8c62571dc0017f735319bb815d}{
\index{ksock\_\-thread\_\-t@{ksock\_\-thread\_\-t}!sock@{sock}}
\index{sock@{sock}!ksock_thread_t@{ksock\_\-thread\_\-t}}
\subsubsection[sock]{\setlength{\rightskip}{0pt plus 5cm}struct socket$\ast$ {\bf ksock\_\-thread\_\-t::sock}\hspace{0.3cm}{\tt  \mbox{[}read\mbox{]}}}}
\label{structksock__thread__t_3066dd8c62571dc0017f735319bb815d}


Socket para receber mensagens. 



Definido na linha 31 do ficheiro socket.h.

Referenciado por hb\_\-broadcast\_\-msg(), hb\_\-udb\_\-client\_\-start() e hb\_\-udb\_\-server\_\-start().\hypertarget{structksock__thread__t_b05c8fa2261a2415f74822c88667289b}{
\index{ksock\_\-thread\_\-t@{ksock\_\-thread\_\-t}!addr@{addr}}
\index{addr@{addr}!ksock_thread_t@{ksock\_\-thread\_\-t}}
\subsubsection[addr]{\setlength{\rightskip}{0pt plus 5cm}struct sockaddr\_\-in {\bf ksock\_\-thread\_\-t::addr}\hspace{0.3cm}{\tt  \mbox{[}read\mbox{]}}}}
\label{structksock__thread__t_b05c8fa2261a2415f74822c88667289b}




Definido na linha 32 do ficheiro socket.h.

Referenciado por hb\_\-udb\_\-client\_\-start() e hb\_\-udb\_\-server\_\-start().\hypertarget{structksock__thread__t_fde47daf4e0183ec4c067c28b210eb4a}{
\index{ksock\_\-thread\_\-t@{ksock\_\-thread\_\-t}!sock\_\-send@{sock\_\-send}}
\index{sock\_\-send@{sock\_\-send}!ksock_thread_t@{ksock\_\-thread\_\-t}}
\subsubsection[sock\_\-send]{\setlength{\rightskip}{0pt plus 5cm}struct socket$\ast$ {\bf ksock\_\-thread\_\-t::sock\_\-send}\hspace{0.3cm}{\tt  \mbox{[}read\mbox{]}}}}
\label{structksock__thread__t_fde47daf4e0183ec4c067c28b210eb4a}


Socket para enviar mensagens. 



Definido na linha 37 do ficheiro socket.h.\hypertarget{structksock__thread__t_1bada36c1d4378aa03ec5eb35b6e8d6b}{
\index{ksock\_\-thread\_\-t@{ksock\_\-thread\_\-t}!addr\_\-send@{addr\_\-send}}
\index{addr\_\-send@{addr\_\-send}!ksock_thread_t@{ksock\_\-thread\_\-t}}
\subsubsection[addr\_\-send]{\setlength{\rightskip}{0pt plus 5cm}struct sockaddr\_\-in {\bf ksock\_\-thread\_\-t::addr\_\-send}\hspace{0.3cm}{\tt  \mbox{[}read\mbox{]}}}}
\label{structksock__thread__t_1bada36c1d4378aa03ec5eb35b6e8d6b}




Definido na linha 38 do ficheiro socket.h.

Referenciado por hb\_\-broadcast\_\-msg() e hb\_\-udb\_\-client\_\-start().

A documentação para esta estrutura foi gerada a partir do seguinte ficheiro:\begin{CompactItemize}
\item 
\hyperlink{socket_8h}{socket.h}\end{CompactItemize}
